// This file was decompiled using SASCM.ini published on 2077-03-20
{$CLEO .cs}
{$USE ini}

0000: NOP 
wait 0 
if 
  does_file_exist "cleo\actioncam_yuikawa22_aimpad.ini" 
jf @AIM_37

2@ = Audiostream.Load("cleo\cleo_sounds\zoom.wav")
3@ = Audiostream.Load("cleo\cleo_sounds\zoomout.wav")

  read_int_from_ini_file 4@ = read_int_from_ini_file "cleo\actioncam_yuikawa22_aimpad.ini" section "KEY" key "AIMZOOM_IN" 
  read_int_from_ini_file 5@ = read_int_from_ini_file "cleo\actioncam_yuikawa22_aimpad.ini" section "KEY" key "AIMZOOM_OUT" 
  read_float_from_ini_file 6@ = read_float_from_ini_file "cleo\actioncam_yuikawa22_aimpad.ini" section "AIM_ZOOM" key "WEAPON1" 
  read_float_from_ini_file 7@ = read_float_from_ini_file "cleo\actioncam_yuikawa22_aimpad.ini" section "AIM_ZOOM" key "WEAPON2" 
  read_float_from_ini_file 8@ = read_float_from_ini_file "cleo\actioncam_yuikawa22_aimpad.ini" section "AIM_ZOOM" key "WEAPON3" 

:AIM_33
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
jf @AIM_33 
if
  044B:   actor $PLAYER_ACTOR on_foot 
jf @AIM_33 
if or 
02D8:   actor $PLAYER_ACTOR current_weapon == 22  
02D8:   actor $PLAYER_ACTOR current_weapon == 23 
02D8:   actor $PLAYER_ACTOR current_weapon == 24
02D8:   actor $PLAYER_ACTOR current_weapon == 25  
02D8:   actor $PLAYER_ACTOR current_weapon == 26 
02D8:   actor $PLAYER_ACTOR current_weapon == 27 
jf @AIM_16 
if and
  00E1:  player 0 pressed_key 6 
  00E1:  player 0 pressed_key 4@ 
jf @AIM_16  
0801: get_camera_zoom_factor_to 1@ // float 
jump @AIM_24

:AIM_24
Audiostream.PerformAction(2@, AudioStreamState.Play)
0931: lock_camera_zoom 1
0922: set_camera_zoom_from 1@ to 6@ timelimit 100 smooth_transition 1 
jump @AIM_23

:AIM_23
wait 0 
if or 
80E1:   not player 0 pressed_key 6
00E1:   player 0 pressed_key 5@ 
jf @AIM_23 
Audiostream.PerformAction(3@, AudioStreamState.Play)
0931: lock_camera_zoom 0
0922: set_camera_zoom_from 6@ to 1@ timelimit 100 smooth_transition 1 
jump @AIM_19

:AIM_16 
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
jf @AIM_16 
if
  044B:   actor $PLAYER_ACTOR on_foot 
jf @AIM_16  
if or 
02D8:   actor $PLAYER_ACTOR current_weapon == 28
02D8:   actor $PLAYER_ACTOR current_weapon == 29 
02D8:   actor $PLAYER_ACTOR current_weapon == 32 
02D8:   actor $PLAYER_ACTOR current_weapon == 38  
jf @AIM_64 
if and
  00E1:  player 0 pressed_key 6 
  00E1:  player 0 pressed_key 4@ 
jf @AIM_64 
0801: get_camera_zoom_factor_to 1@ // float 
jump @AIM_20 

:AIM_20 
Audiostream.PerformAction(2@, AudioStreamState.Play)
0931: lock_camera_zoom 1 
0922: set_camera_zoom_from 1@ to 7@ timelimit 100 smooth_transition 1 
jump @AIM_35  

:AIM_35
wait 0 
if or 
80E1:   not player 0 pressed_key 6
00E1:   player 0 pressed_key 5@ 
jf @AIM_35 
Audiostream.PerformAction(3@, AudioStreamState.Play)
0931: lock_camera_zoom 0
0922: set_camera_zoom_from 7@ to 1@ timelimit 100 smooth_transition 1 
jump @AIM_19

:AIM_64
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
jf @AIM_64 
if
  044B:   actor $PLAYER_ACTOR on_foot 
jf @AIM_64
if or 
02D8:   actor $PLAYER_ACTOR current_weapon == 30 
02D8:   actor $PLAYER_ACTOR current_weapon == 31 
02D8:   actor $PLAYER_ACTOR current_weapon == 33  
jf @AIM_19
if and
  00E1:  player 0 pressed_key 6 
  00E1:  player 0 pressed_key 4@ 
jf @AIM_19 
0801: get_camera_zoom_factor_to 1@ // float 
jump @AIM_26 

:AIM_26  
Audiostream.PerformAction(2@, AudioStreamState.Play)
0931: lock_camera_zoom 1 
0922: set_camera_zoom_from 1@ to 8@ timelimit 100 smooth_transition 1 
jump @AIM_32

:AIM_32
wait 0 
if or 
80E1:   not player 0 pressed_key 6
00E1:   player 0 pressed_key 5@ 
jf @AIM_32 
Audiostream.PerformAction(3@, AudioStreamState.Play)
0931: lock_camera_zoom 0
0922: set_camera_zoom_from 8@ to 1@ timelimit 100 smooth_transition 1 
jump @AIM_19

:AIM_19
jump @AIM_33 

:NONAME_30 
wait 0
if
80E1: not player 0 pressed_key 6
jf @AIM_32
jf @AIM_35
jf @AIM_23
Audiostream.Release(2@)
Audiostream.Release(3@)

:AIM_37
wait 0 
terminate_this_custom_script 
